package ar.com.digitalbricks.view.imprenta.general;

import com.opensymphony.xwork2.Action;
import com.opensymphony.xwork2.ActionSupport;

public class Index extends ActionSupport implements ModuloAction{
	private Boolean showClienteDiv = false;
	
	@Override
	public String execute() throws Exception {
		return Action.SUCCESS;
	}
	
	public String cliente() throws Exception {
		this.setShowClienteDiv(true);
		return Action.SUCCESS;
	}

	public String getShowClienteDiv() {
		return this.toCssLanguage(this.showClienteDiv);
	}

	public void setShowClienteDiv(Boolean showClienteDiv) {
		this.showClienteDiv = showClienteDiv;
	}

	private String toCssLanguage(Boolean show){
		if (show){
			return "display";
		}else{
			return "display:none";
		}
	}

	public String getTitulo() {
		return "index.titulo";
	}
	
	public String getRutaCss() {
		return "css/index.css";
	}
}